//
//  HouseItemModel.m
//  Utils
//
//  Created by enghou on 2018/4/28.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "HouseItemModel.h"

@implementation HouseItemModel
-(instancetype)initWithSource:(NSDictionary *)source{
    self = [super initWithSource:source];
    if (self) {
        self.ids = [self contentForKey:@"id" withSource:source];
        self.imageUrl = [self contentForKey:@"imgUrl" withSource:source];
        self.detail = [NSString stringWithFormat:@"房主现居详址: %@",[self contentForKey:@"nowLiveAddress" withSource:source]];
        self.title = [NSString stringWithFormat:@"%@ %@",[self contentForKey:@"rentalHouse" withSource:source],[self contentForKey:@"name" withSource:source]];
    }
    return self;
}
@end
